package com.imooc.mapper;

import com.imooc.pojo.vo.SearchItemsVO;
import com.imooc.pojo.vo.ShopcartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsMapperCustom {
    List<SearchItemsVO> searchItems(@Param("paramsMap")Map<String,Object> map);
    List<SearchItemsVO> searchItemsByThirdCat(@Param("paramsMap")Map<String,Object> map);
    List<ShopcartVO> queryItemsBySpecIds(@Param("itemSpecIdList") List specIdsList);

    Integer decreaseItemsSpecStock(@Param("buyCounts") Integer buyCounts, @Param("itemSpecId") String itemSpecId);
}